import request from '@/utils/request'
// import store from '@/store'

// 获取-用户基本资料
export const myUserinfo = () => {
  return request({
    url: '/my/userinfo'
    // headers: {
    //   Authorization: `${store.state.user.token}`
    // }
  })
}

// 更新-用户基本资料
// PUT/my/userinfo
export const myUserinfoPut = data => {
  return request({
    url: '/my/userinfo',
    method: 'put',
    data
  })
}
